<?php

declare(strict_types=1);

namespace Modules\Configuration\Models;

use Catch\Traits\DB\BaseOperate;
use Catch\Traits\DB\ScopeTrait;
use Catch\Traits\DB\Trans;
use Illuminate\Database\Eloquent\Model;

/**
 * @property $max_rev_day
 * @property $max_cancel_rev
 * @property $time_ids
 * @property $banners
 * @property $about_us
 * @property $creator_id
 * @property $created_at
 * @property $updated_at
*/
class Configuration extends Model
{
    use BaseOperate, Trans, ScopeTrait;

    const CREATED_AT = 'created_at'; // 创建时间
    const UPDATED_AT = 'updated_at'; // 更新时间

    public $timestamps = true;
    public $dateFormat = "U";

    protected $table = 'configuration';

    protected $fillable = [ 'max_rev_day', 'max_cancel_time', 'time_ids', 'banners', 'about_us', 'creator_id', 'created_at', 'updated_at' ];

//    /**
//     * @var array
//     */
//    protected array $fields = ['max_rev_day','max_cancel_rev','time_ids','banners','about_us','created_at','updated_at'];
//
//    /**
//     * @var array
//     */
//    protected array $form = ['max_rev_day','max_cancel_rev','time_ids','banners','about_us'];

    /**
     * @var array
     */
    public array $searchable = [

    ];


}
